package com.woniu.lifeservice.service;

import com.woniu.lifeservice.pojo.ServiceDetails;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.lifeservice.vo.ServiceDetailsVO;
import com.woniu.user.vo.UserLoginVO;
import com.woniu.user.vo.UserMessageVO;

import java.util.List;

/**
 * <p>
 * 服务详情表 服务类
 * </p>
 *
 * @author hushunlai
 * @since 2023-05-22
 */
public interface IServiceDetailsService extends IService<ServiceDetails> {

    List<ServiceDetailsVO> listSearch(String serviceTitle);

    List<ServiceDetailsVO> nameSearch(String userName);

    List<ServiceDetailsVO> visitorRank();

    List<ServiceDetails> detailsPage(Integer serviceId);

    List<ServiceDetailsVO> latestPosting();

    ServiceDetails add(ServiceDetails serviceDetails, UserLoginVO userLoginVO);

    List<ServiceDetailsVO> recommend();

    List<UserMessageVO> userMessage(Integer userId);

    List<ServiceDetailsVO> categorySearch(String service_category_second);
}
